Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Carl-Philip Wenz 4 posts 34 karma points
    Oct 18, 2013 @ 11:38
    Carl-Philip Wenz
    0

    REST API with [Authorize]

    Hello everybody

    what happens when I annotate a UmbracoApiController with [Authorize]? Is authorization done through Umbraco User, Members or something else?

    Best regards Carl-Philip Wenz

  • Sebastiaan Janssen 4899 posts 14655 karma points MVP admin hq
    Oct 18, 2013 @ 20:08
    Sebastiaan Janssen
    101

    You want to use MemberAuthorize if you want it to be based on Members, UmbracoAuthorize if it needs to be based on Users and just Authorize if you a want to use (I think.. not sure) the membership provider.

    Docs for the first two examples here: http://our.umbraco.org/Documentation/Reference/WebApi/authorization

  • Biagio Paruolo 1494 posts 1635 karma points c-trib
    May 28, 2014 @ 22:09
    Biagio Paruolo
    0

    Is there an example?

  • Sebastiaan Janssen 4899 posts 14655 karma points MVP admin hq
    May 28, 2014 @ 22:15
    Sebastiaan Janssen
    0

    Click the link..

  • Biagio Paruolo 1494 posts 1635 karma points c-trib
    May 28, 2014 @ 22:46
    Biagio Paruolo
    0

    Ok. I see the example before. How call the webapi+authorization from a mobile app ( like via json call )?

  • Thomas Boeriis 3 posts 23 karma points
    Jan 02, 2015 @ 23:43
    Thomas Boeriis
    0

    I would also like to know if its possible what Biagio Paruolo wrote?  

  • This forum is in read-only mode while we transition to the new forum.

    You can continue this topic on the new forum by tapping the "Continue discussion" link below.

Please Sign in or register to post replies